const buf = Buffer.from('test', 'ascii');
//输出 74657374
console.log(buf.toString('hex'))
//输出 dGVzdA==
console.log(buf.toString('base64'))
// 输出 test
console.log(buf.toString('utf-8'))